home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / var / lib / dpkg / info / isc-dhcp-client.postinst < prev    next >
Encoding:
Text File  |  2012-09-23  |  728 b   |  39 lines

  1. #!/bin/sh
  2. #
  3. #
  4.  
  5. set -e
  6.  
  7. # Source debconf library.
  8. . /usr/share/debconf/confmodule
  9.  
  10. case "$1" in
  11.     configure)
  12.         if [ ! -e /var/lib/dhcp/dhclient.leases ]; then
  13.             if test -e /var/lib/dhcp3/dhclient.leases; then
  14.                 cp /var/lib/dhcp3/dhclient.leases /var/lib/dhcp/dhclient.leases
  15.             else
  16.                 touch /var/lib/dhcp/dhclient.leases
  17.             fi
  18.         fi
  19.  
  20.     if [ -z "$2" ]; then
  21.         if [ -e /etc/dhcp3/dhclient.conf ]; then
  22.             cp /etc/dhcp3/dhclient.conf /etc/dhcp/dhclient.conf
  23.         fi
  24.     fi
  25.  
  26.         ;;
  27.  
  28.     abort-upgrade|abort-remove|abort-deconfigure)
  29.         exit 0
  30.         ;;
  31.     
  32.     *)
  33.         echo "postinst called with unknown argument \`$1'" >&2
  34.         exit 0
  35.         ;;
  36. esac
  37.  
  38.  
  39.